<template>
  <div class="card-container">
    <div class="nav-bar">
      <span class="close" @click="$router.back()">
        <img src="@/assets/goImages/vf.png" alt="" />
      </span>
      <span class="title">走起超级会员</span>
    </div>
    <iframe :src="url" frameborder="0" width="100%" height="100%"></iframe>
  </div>
</template>

<script>
export default {
  data() {
    return {
      url: ''
    }
  },
  created() {
    this.url = this.$store.state.go_card_url
  }
}
</script>

<style lang="less" scoped>
.card-container {
  height: 100vh;
  padding-top: 46px;
  .nav-bar {
    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    height: 46px;
    width: 100%;
    display: flex;
    align-items: center;
    background-color: #d94648;
    padding: 0 20px;

    .title {
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: #fff;
      font-size: 18px;
      line-height: 30px;
      font-weight: 600;
    }
    .close {
      height: 30px;
      width: 30px;
      margin-right: 10px;
      display: flex;
      justify-content: center;
      align-items: center;
      img {
        height: 16px;
        width: 16px;
      }
    }
  }
}
</style>
